package Animals;

public class main {
    public static void main(String[] args) {
        Animal[]animals={//定义指针
            new Tiger(),
            new Elephant(),
            new Fox(),
            new Panda()
        };

        for(Animal animal:animals){
            animal.makeSound();//多态调用
        }
    }
}
